import axiosInstance from "./axiosInstance";
const baseUrl = "/powerZone";

export const getList = (params) => {
	return axiosInstance.get(`${baseUrl}/list`, { params });
};

export const deletepowerZone = (id) => {
	return axiosInstance.delete(`${baseUrl}/${id}`);
}

export const editpowerZone = (data) => {
	return axiosInstance.put(`${baseUrl}`, data);
}

export const addpowerZone = (data) => {
	return axiosInstance.post(`${baseUrl}`, data);
}

export const getPowerZoneNameMap = () => {
	return axiosInstance.get(`${baseUrl}/idNameMap`);
}
